Filter hook 'pre_set_transient_{$transient}'

in WP Core File wp-includes/option.php at line 1494

Description

Filters a specific transient before its value is set. The dynamic portion of the hook name, `$transient`, refers to the transient name.

Occurrences

Filename Line Number
wp-includes/option.php 1494

Parameters

Type Name Description
mixed $value New value of transient.
int $expiration Time until expiration in seconds.
string $transient Transient name.

PHP Doc

/**
	 * Filters a specific transient before its value is set.
	 *
	 * The dynamic portion of the hook name, `$transient`, refers to the transient name.
	 *
	 * @since 3.0.0
	 * @since 4.2.0 The `$expiration` parameter was added.
	 * @since 4.4.0 The `$transient` parameter was added.
	 *
	 * @param mixed  $value      New value of transient.
	 * @param int    $expiration Time until expiration in seconds.
	 * @param string $transient  Transient name.
	 */